﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm3.aspx.cs" Inherits="WebApplication1.WebForm3" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>弹出遮罩层示例</title>
    <script src="jquery-1.7.1.js" type="text/javascript"></script>
    <script src="popup.js" type="text/javascript"></script>
    <style type="text/css">
        .gv
        {
            position: absolute;
            display: none;
            z-index: 100;
            background-color: White;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:Button ID="btnShowMes" runat="server" Text="弹出提示框" OnClick="btnShowMes_Click" />
        <asp:Button ID="btnShowPop" runat="server" Text="弹出选择框" OnClick="btnShowPop_Click" />
    </div>
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" Width="358px"
        CssClass="gv">
        <Columns>
            <asp:BoundField DataField="id" HeaderText="编号" />
            <asp:BoundField DataField="name" HeaderText="姓名" />
            <asp:BoundField DataField="age" HeaderText="年龄" />
            <asp:TemplateField HeaderText="选择">
                <ItemTemplate>
                    <asp:LinkButton ID="lbtnSel" runat="server" OnClick="sel" CommandArgument='<%#Eval("id") %>'>选择</asp:LinkButton>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    </form>
</body>
</html>
